package com.lovo.project2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.project2.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoleBeanMapper extends BaseMapper<RoleBean> {
    public void updateRoleBean(@Param("id") int roleId) ;
    void insert(@Param("id") int roleId ,@Param("list") List<Integer> list );


    //查看角色的权限
    RoleBean selectByRoleIdRoleBean( @Param("roleId") int roleId);
    //根据角色的id 删掉
    void deleteByRoleIdPermissions(@Param("roleId") int roleId);
    //添加角色时给权限赋值
    void addPermissions(@Param("role") RoleBean roleBean);
    int addRole(@Param("role") RoleBean roleBean);

}
